package com.tzbank.entity;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.annotations.Table;

import javax.persistence.Column;
import javax.persistence.Entity;
import java.io.Serializable;

/**
 * 字典对象
 *
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Entity(name = "mb_dict")
@Table(appliesTo = "mb_dict", comment = "字典信息表")
public class Dict extends BaseModel implements Serializable {

	private static final long serialVersionUID = -3913839430313799857L;

	/**
	 * 字典类型ID
	 */
	@ApiModelProperty(value = "字典类型ID")
	@Column(name = "dict_type_id", columnDefinition = "varchar(50)  NOT NULL COMMENT '字典类型ID'")
	private String dictTypeId;

	/**
	 * 字典名称
	 */
	@ApiModelProperty(value = "字典名称")
	@Column(name = "dict_name", columnDefinition = "varchar(100)  NOT NULL COMMENT '字典名称'")
	private String dictName;

	/**
	 * 字典值
	 */
	@ApiModelProperty(value = "字典值")
	@Column(name = "dict_value", columnDefinition = "varchar(100)  NOT NULL COMMENT '字典值'")
	private String dictValue;

	/**
	 * 字典描述
	 */
	@ApiModelProperty(value = "字典描述")
	@Column(name = "dict_desc", columnDefinition = "varchar(100)  DEFAULT NULL COMMENT '字典描述'")
	private String dictDesc;

	/**
	 * 排序
	 */
	@ApiModelProperty(value = "排序")
	@Column(name = "dict_sort", columnDefinition = "int(20) NOT NULL DEFAULT 0  COMMENT '排序'")
	private Integer dictSort;

	@ApiModelProperty(value = "状态")
	@Column(name = "status", columnDefinition = "varchar(1) NOT NULL DEFAULT '1'  COMMENT '状态'")
	private String status;

}